package edu.nf.supermarket.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author gwf
 * @date 2025-06-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
// 商品规格
public class ProductSpec {
    /**
     * 商品规格ID
     */
    private Integer specId;
    /**
     * 商品规格名称
     */
    private String specName;
    /**
     * 商品规格状态
     */
    private Byte specStatus;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    List<SpecAttributes> attributes;
}
